#ifndef MYJOURNAL_H
#define MYJOURNAL_H

#include <QObject>
/**
 * @brief The MyJournal class
 * @version 1.0
 * @author Albert
 * @date 2021.03.26
 *      [1.0]
 *          1.输出日志
 */
class MyJournal : public QObject
{
    Q_OBJECT
protected:
    explicit MyJournal(QObject *parent = nullptr);

public:
    /**
     * @brief 获取单例对象
     * @return
     */
    static MyJournal *getObject();
    /**
     * @brief 输出一条日志
     * @param info
     */
    void printJournal(const QString &info);

protected:
    static MyJournal *obj;

};

#endif // MYJOURNAL_H
